/*
 * SocketUDP.h
 *
 *  Created on: Jan 24, 2013
 *      Author: murilo
 */

#ifndef SOCKETUDP_H_
#define SOCKETUDP_H_

#include "Sys_Socket.hpp"
#include <string>

class Socket_UDP {
	public:
		Socket_UDP(std::string host,std::string port);
		virtual ~Socket_UDP();

		void connectTo();
		void sendMsg(std::string msg);
		std::string recvMsg();
		bool isConnected();

	private:
		bool connected;
		//no caso AF_INET
		addrinfo sockType,*serverInfo;
		int socketInfo;
		std::string host;
		std::string port;
};

#endif /* SOCKETUDP_H_ */
